
import numpy as np
from matplotlib import pyplot as plt
import matplotlib

Zh_Font = matplotlib.font_manager.FontProperties(fname="venv/include/SourceHanSansSC-Bold.otf")
plt.rc('font', family='Times New Roman')
plt.rc('font', size=16)
plt.rc('font', weight='bold')
legend_font = {
    'fname': 'C:/Windows/fonts/simhei.ttf',  # 引用系统字体
    'style': 'normal',
    'size': 14,  # 字号
    'weight': "normal",  # 是否加粗，不加粗
}

ypoints = np.array([6, 2, 13, 10])

plt.plot(ypoints, color = 'r')
plt.show()